package com.study.algorithm.datastruct.graph.model;

import com.study.algorithm.utils.StringUtils;

public class Vertex {
    private String vertex;

    public Vertex(String vertex) {
        if (StringUtils.isBlank(vertex)) {
            throw new IllegalArgumentException("构建顶点参数不能为空");
        }
        this.vertex = vertex;
    }

    public String getVertex() {
        return vertex;
    }

    public void setVertex(String vertex) {
        if (StringUtils.isEmpty(vertex)) {
            return;
        }
        this.vertex = vertex;
    }

}
